package com.gateon.hw.client.system.client;
import com.gateon.hw.client.system.resp.SupplierContractResp;
import com.gateon.hw.client.system.req.SupplierContractListReq;
import com.gateon.hw.client.system.req.SupplierContractAddReq;
import com.gateon.hw.client.system.req.SupplierContractUpdateReq;
import com.gateon.hw.base.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
*  合同信息表实体bean
* Created by leslie on 2020-4-29 15:38:04
*/
public interface SupplierContractClient{
    @PostMapping("/supplierContract/list")
    Result<IPage<SupplierContractResp>> list(@RequestBody SupplierContractListReq req);

    @PostMapping("/supplierContract/{id}")
    Result<SupplierContractResp> detail(@PathVariable("id") Long id);

    @PostMapping("/supplierContract/insert")
    Result insert(@RequestBody SupplierContractAddReq req);

    @PostMapping("/supplierContract/update")
    Result update(@RequestBody SupplierContractUpdateReq req);

    @PostMapping("/supplierContract/delete")
    Result delete(@PathVariable("id") Long id);

}
